<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('customer/index')}">客户列表</a></li>
			<li><a href="{:url('customer/add')}">新增客户</a></li>
		</ul>
		<br/>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>组织</th>
					<th>编号</th>
					<th>名称</th>
					<th>接单量</th>
					<th>开关</th>
					<th width="140">{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.fname}</td>
					<td>{$vo.number}</td>
					<td>{$vo.name}</td>
					<td>{$vo.shipment}</td>
					<td><if $vo.switch>开<else/>关</if></td>
					<td>
						<a class="btn btn-xs btn-primary" href='{:url("customer/edit",array("id"=>$vo["id"]))}'>接单量</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>